package main

import "fmt"

func main() {
	ch:=make(chan int )
	go func() {
		for  {
			select {
			case ch<-0:
			case ch<-1:
			}
		}
	}()
	for v:=range ch{
		fmt.Println(v)
	}
}
